package routers

import (
	"home/controllers"
	"github.com/astaxie/beego"
)

func init() {
	// 首页路由
    beego.Router("/", &controllers.MainController{})

    // 详情页路由
    beego.Router("/details/:video_number", &controllers.VideoDetailsController{})

    // 搜索页路由
    beego.Router("/search/:search_value", &controllers.SearchController{})

	// 分类列表
	beego.Router("/cate/:cate_number", &controllers.CateController{})
}
